package uit.server.model;

import java.util.ArrayList;
import java.util.List;

import com.esri.aims.mtier.model.envelope.Envelope;

public class FeatureDataSet {

	private List<FeatureModel> featrueList;
	private Envelope globalEnvelop ; 
	private int resultCount = 0 ;


	public  FeatureDataSet(){
		featrueList = new ArrayList<FeatureModel>();
	}

	public List<FeatureModel> getFeatrueList() {
		return featrueList;
	}
	public void setFeatrueList(List<FeatureModel> featrueList) {
		this.featrueList = featrueList;
	}


	public boolean addFeatureModel(FeatureModel featureModel){
		if(!featrueList.contains(featureModel)) {
			featrueList.add(featureModel);
			return true;
		}
		return false;
	}

	public Envelope getGlobalEnvelop() {
		return globalEnvelop;
	}
	public void setGlobalEnvelop(Envelope globalEnvelop) {
		this.globalEnvelop = globalEnvelop;
	}
	public int getResultCount() {
		return resultCount;
	}
	public void setResultCount(int resultCount) {
		this.resultCount = resultCount;
	}
}
